Import('rtconfig')  # 导入rtconfig变量，通常包含项目的配置信息

from building import *
import os

cwd = GetCurrentDir()
src = []

CPPPATH = [cwd]

if GetDepend('USING_USER_FAN'):
    src += [os.path.join(cwd, 'fan.c')]

if GetDepend('USING_USER_TEMP'):
    src += [os.path.join(cwd, 'temperature.c')]

src += [os.path.join(cwd, 'pid.c')]

group = DefineGroup('FAN', src, depend = [''], CPPPATH = CPPPATH)

Return('group')
